import { post } from './api'

export default (fileList) => {
    const formData = new FormData();
    fileList.map(file => {
        formData.append('file', file.raw)
    })

    return post('upload', formData)
}